export const orderStatusMap = {
  10: {
    name: '待领取',
    color: '#FC6B5C'
  },
  0: {
    name: '未提交',
    color: '#008BEE'
  },
  20: {
    name: '待处理',
    color: '#FFBF00'
  },
  30: {
    name: '完成',
    color: '#2ED47A'
  },
  40: {
    name: '终止',
    color: '#B3B9C7'
  }
}
const sysFields = [
  {
    fieldType: 'member',
    name: '创建人',
    businessId: 'createUser'
  },
  {
    fieldType: 'dateTime',
    name: '创建时间',
    businessId: 'createTime'
  },
  {
    fieldType: 'dateTime',
    name: '更新时间',
    businessId: 'updateTime'
  }
]
const sla = [{
  fieldType: 'radio',
  name: '当前SLA',
  subFieldType: 'sla',
  businessId: 'currentSlaStatus',
  options: [
    { key: 1, value: '已超时' },
    { key: 2, value: '未超时' },
    { key: 3, value: '未匹配' }
  ]
}, {
  fieldType: 'radio',
  name: '整体SLA',
  businessId: 'entireSlaStatus',
  subFieldType: 'sla',
  options: [
    { key: 1, value: '已超时' },
    { key: 2, value: '未超时' },
    { key: 3, value: '未匹配' }
  ]
}]
const busCommon = [{
  fieldType: 'checkbox',
  name: '工单状态',
  businessId: 'orderStatus',
  options: [
    { key: 0, value: '未提交' },
    { key: 10, value: '待领取' },
    { key: 20, value: '待处理' },
    { key: 30, value: '完成' },
    { key: 40, value: '终止' }
  ]
}, {
  fieldType: 'radio',
  name: '工单来源',
  businessId: 'source',
  options: [
    { key: 1, value: '移动端' },
    { key: 2, value: 'WEB端' },
    { key: 3, value: '接口创建' }
  ]
}, {
  fieldType: 'text',
  name: '当前节点',
  businessId: 'activityName'
}]
export const filterFieldOther = [
  {
    fieldType: 'member',
    name: '当前处理人',
    businessId: 'master'
  },
  {
    fieldType: 'member',
    name: '创建人',
    businessId: 'createUser'
  },
  {
    fieldType: 'checkbox',
    name: '工单状态',
    businessId: 'orderStatus',
    options: [
      { key: 0, value: '未提交' },
      { key: 10, value: '待领取' },
      { key: 20, value: '待处理' },
      { key: 30, value: '完成' },
      { key: 40, value: '终止' }
    ]
  }
]
export const handleList = [{
  fieldType: 'text',
  name: '工单类型',
  businessId: 'orderCategory'
}, {
  fieldType: 'text',
  name: '当前节点',
  businessId: 'activityName'
},
{
  fieldType: 'radio',
  name: '工单来源',
  businessId: 'source',
  options: [
    { key: 1, value: '移动端' },
    { key: 2, value: 'WEB端' },
    { key: 3, value: '接口创建' }
  ]
}].concat(sysFields).concat(sla)
export const filterFieldAllList = [
  // {
  //   fieldType: 'text',
  //   name: '工单类型',
  //   businessId: 'orderCategory'
  // },
  {
    fieldType: 'member',
    name: '当前处理人',
    businessId: 'master'
  }
].concat(busCommon).concat(sysFields).concat(sla)
export const filterCreateFieldList = [
  {
    fieldType: 'text',
    name: '工单类型',
    businessId: 'orderCategory'
  },
  {
    fieldType: 'member',
    name: '当前处理人',
    businessId: 'master'
  },
  {
    fieldType: 'dateTime',
    name: '创建时间',
    businessId: 'createTime'
  },
  {
    fieldType: 'dateTime',
    name: '更新时间',
    businessId: 'updateTime'
  }
].concat(busCommon).concat(sla)
export const exportFieldList = [
  { exportFieldType: 1, name: '工单编号', businessId: 'orderNo' },
  { exportFieldType: 1, name: '工单类型', businessId: 'orderCategory' },
  { exportFieldType: 1, name: '当前状态', businessId: 'orderStatus' },
  { exportFieldType: 1, name: '当前节点', businessId: 'activityName' },
  { exportFieldType: 1, name: '工单创建人', businessId: 'createUser' },
  { exportFieldType: 1, name: '创建时间', businessId: 'createTime' },
  { exportFieldType: 1, name: '工单来源', businessId: 'source' },
  { exportFieldType: 1, name: '当前处理人', businessId: 'master' },
  { exportFieldType: 1, name: '更新时间', businessId: 'updateTime' },
  { exportFieldType: 8, name: '当前SLA', businessId: 'currentSlaStatus' },
  { exportFieldType: 8, name: '整体SLA', businessId: 'entireSlaStatus' },
  { exportFieldType: 9, name: '客户手机号', businessId: 'customerPhoneVO' },
  { exportFieldType: 9, name: '客户名称', businessId: 'customerNameVO' },
  { exportFieldType: 9, name: '客户联系人手机号', businessId: 'customContactId' }
]
